#include<iostream>
#include "EquationSolver.h"
#include <cmath>  
using namespace std;

class Func : public Function{
     public:
        virtual double operator()(const double &x){
            return x-tan(x);
        }
        double diff (const double &x) const{
            return 1 - 1.0/(cos(x)*cos(x));
        }
}func;

int main(){
    cout << "C.1 "  << endl; 
    NewtonSolver(func, 4.5,500).solve();
    cout << "C.2 "  << endl;
    NewtonSolver(func, 7.7, 500).solve();
    return 0;
}